package DianShang_2024.ds_server.clean

import org.apache.spark.sql.SparkSession

object test {
  def main(args: Array[String]): Unit = {
    //  准备sparksql的环境
    val spark = SparkSession.builder()
      .master("local[*]")
      .appName("数据清洗准备数据")
      .enableHiveSupport()
      .getOrCreate()

  spark.sql("select * from dwd_server.fact_order_detail ").show
    spark.sql("select * from dwd_server.dim_customer_inf  where etl_date='20240311'").show

    spark.close()
  }

}
